﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserPlanManager.aspx.cs"
    Inherits="UserPlan_UserPlanManager" Theme="skin_control" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>员工个人计划管理</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <table width="884px" border=0 cellpadding=0 cellspacing=0 >
                <tr>
                    <td colspan="1" rowspan="1" valign="top">
                        计划类型:<asp:DropDownList ID="drpType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpType_SelectedIndexChanged">
                            <asp:ListItem Value="0">月计划</asp:ListItem>
                            <asp:ListItem Value="1">周计划</asp:ListItem>
                        </asp:DropDownList>计划状态:<asp:DropDownList ID="drpState" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpState_SelectedIndexChanged">
                            <asp:ListItem Value="0">已审核</asp:ListItem>
                            <asp:ListItem Value="1">已提交</asp:ListItem>
                            <asp:ListItem Value="2">待提交</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="GvUserPlanList" runat="server" SkinID="gridviewSkin" AutoGenerateColumns="False"
                             OnPageIndexChanging="GvUserPlanList_PageIndexChanging" Width="100%">
                            <Columns>
                                <asp:BoundField DataField="UserPlanId" HeaderText="编号" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PlanType" HeaderText="计划类型" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StartTime" HeaderText="开始时间" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EndTime" HeaderText="完成时间" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PlanContents" HeaderText="计划内容" >
                                    <ItemStyle Width="330px" Wrap="True" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="330px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="审核人" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDelete" runat="server"  Text="删除" SkinID="buttonSkin" CausesValidation="False" OnClick="btnDelete_Click" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    计划类型</td>
                                <td>
                                    <asp:DropDownList ID="drpPlanType" runat="server" SkinID="dropdownlistSkin">
                                        <asp:ListItem Value="0">月计划</asp:ListItem>
                                        <asp:ListItem Value="1">周计划</asp:ListItem>
                                    </asp:DropDownList></td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    起始时间</td>
                                <td>
                                    <asp:TextBox ID="txtStartTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server" SkinID="textboxSkin"></asp:TextBox><cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="txtStartTime">
                                    </cc1:CalendarExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                                        Display="Dynamic" ErrorMessage="起始时间不可以为空"></asp:RequiredFieldValidator><asp:CompareValidator
                                            ID="CompareValidator1" runat="server" ControlToValidate="txtStartTime" Display="Dynamic"
                                            ErrorMessage="时间类型不正确" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
                            </tr>
                            <tr>
                                <td>
                                    完成时间</td>
                                <td>
                                    <asp:TextBox ID="txtEndTime" runat="server" SkinID="textboxSkin"></asp:TextBox> 
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                                        Display="Dynamic" ErrorMessage="完成时间不可以为空"></asp:RequiredFieldValidator><asp:CompareValidator
                                            ID="CompareValidator2" runat="server" ControlToValidate="txtEndTime" Display="Dynamic"
                                            ErrorMessage="时间类型不正确" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator></td>
                            </tr>
                            <tr>
                                <td>
                                    计划内容</td>
                                <td>
                                    <asp:TextBox ID="txtPlanContents" runat="server" TextMode="MultiLine" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPlanContents"
                                        Display="Dynamic" ErrorMessage="计划内容不可以为空"></asp:RequiredFieldValidator></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="1" align="left">
                        <asp:Button ID="btnSave" runat="server" Text="保存为草稿" SkinID="buttonSkin" OnClick="btnSave_Click" />
                        <asp:Button ID="btnOk" runat="server" Text="提交审核" SkinID="buttonSkin" OnClick="btnOk_Click" />
                        <asp:Button ID="btnReset" runat="server" Text="重置" SkinID="buttonSkin" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
